package com.ctgu.dao;

import com.ctgu.entity.Product;
import org.apache.ibatis.annotations.Param;

public interface DetailMapper {
//通过id查询
     Product findById(int id);

//加入商品到购物车
 Integer addProduct(@Param("product_id") int product_id,@Param("user_id") int user_id,@Param("product_num")  int product_num);
}
